<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet"
	th:href="@{{path}/static/bootstrap/css/bootstrap.min.css(path=${#request.getContextPath()})}" />
<script
	th:src="@{{path}/static/bootstrap/js/jquery-3.3.1.min.js(path=${#request.getContextPath()})}"></script>
<script
	th:src="@{{path}/static/bootstrap/js/bootstrap.js(path=${#request.getContextPath()})}"></script>
</head>
<body>
	<header class="header">
		<nav class="navbar navbar-default navbar-fixed-top">
			<div class="container">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle collapsed"
						data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"
						aria-expanded="false">
						<span class="sr-only">Toggle navigation</span> <span
							class="icon-bar"></span> <span class="icon-bar"></span> <span
							class="icon-bar"></span>
					</button>
					<a class="navbar-brand" href="#">教务管理系统</a>
				</div>

				<div class="collapse navbar-collapse"
					id="bs-example-navbar-collapse-1">

					<ul class="nav navbar-nav navbar-right">
						<li><a
							th:href="@{{path}/main(path=${#request.getContextPath()})}">首页</a></li>
						<li sec:authorize="isAuthenticated()"><a
							th:href="@{{path}/teachingplan/manage(path=${#request.getContextPath()})}">教学计划</a>
						</li>
						<li sec:authorize="isAuthenticated()"><a
							th:href="@{{path}/teaching/addteaching(path=${#request.getContextPath()})}">上课日志</a>
						</li>
						<li sec:authorize="isAuthenticated()"><a
							th:href="@{{path}/callnames/dianming(path=${#request.getContextPath()})}">上课点名</a>
						</li>
						<li sec:authorize="isAuthenticated()"><a
							th:href="@{{path}/ttb/ttb(path=${#request.getContextPath()})}">调停补课申请</a>
						</li>
						<li sec:authorize="isAuthenticated()&&hasRole('ROLE_TEACHER')"><a
							th:href="@{{path}/Schedule/tjkc(path=${#request.getContextPath()})}">录入课表</a>
						</li>
						<li sec:authorize="isAuthenticated()&&hasRole('ROLE_TEACHER')"><a
							th:href="@{{path}/callnames/attendance(path=${#request.getContextPath()})}">学生出勤率</a>
						</li>
						<li sec:authorize="isAnonymous()"><a
							th:href="@{{path}/login(path=${#request.getContextPath()})}"><span
								class="glyphicon glyphicon-user"></span>登录</a></li>
						<li sec:authorize="isAuthenticated()" class="dropdown"><a
							href="#" class="dropdown-toggle" data-toggle="dropdown"
							role="button" aria-haspopup="true" aria-expanded="false"><span
								sec:authorize="hasRole('ROLE_DIY')">开发者</span><span
								sec:authorize="!hasRole('ROLE_DIY')"
								sec:authentication="principal.name"></span><span class="caret"></span></a>
							<ul class="dropdown-menu">
								<li><a
									th:href="@{{path}/adminMain(path=${#request.getContextPath()})}">后台管理</a></li>
								<li><a
									th:href="@{{path}/message(path=${#request.getContextPath()})}">个人信息</a></li>
								<li><a
									th:href="@{{path}/logout(path=${#request.getContextPath()})}">退出</a></li>
							</ul></li>
					</ul>
				</div>
				<!-- /.navbar-collapse -->
			</div>
		</nav>
	</header>
	<section layout:fragment="content"
		style="margin-top: 70px; margin-bottom: 70px"></section>
	<footer class="footer">
		<nav class="navbar navbar-default navbar-fixed-bottom">
			<div class="container">
				<div class="collapse navbar-collapse" style="text-align: center;"
					id="bs-example-navbar-collapse-1">
					<center>
						<p style="margin-top: 15px;">Copyright ©2002-2018
							www.tgc.edu.cn All Rights Reserved 湖北三峡职业技术学院 | 版权所有</p>
					</center>
				</div>
			</div>
		</nav>
	</footer>
</body>
</html>